import request from "../utils/request";

export function subLogin(ruleForm){
    return request({
        url: '/ses/mdStoreUser/login',
        method: 'post',
        data: ruleForm
    })
}
export function getData(storeId){
    return request({
        url: '/ses/plOrderitem/selectAll',
        method: 'get',
        params: storeId
    })
}
export function getEvaluate(storeId,currentPage,pageSize){
    return request({
        url: '/ses/pmEvaluate/selectList/'+storeId+"/"+currentPage+"/"+pageSize,
        method: 'get',
    })
}
export function reply(evaluate){
    return request({
        url: '/ses/pmEvaluate/reply',
        method: 'post',
        data: evaluate
    })
}
export function order(id){
    return request({
        url: '/ses/pmEvaluate/order/'+id
    })
}
export function address(orderitemId){
    return request({
        url: '/ses/plOrderitem/selectAddress/'+orderitemId
    })
}


export function check(row) {
    return request({
        url: '/ses/mdStore/check/' + row.storeId,
        method: 'post',
    });
}

export function insert(userFrom) {
    return request({
        url: '/ses/mdStore/applicationForAdmission',
        method: 'post',
        data: userFrom
    });
}